<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>更新酒店资源信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">
		<table style="width: 600px">
			<tr>
				<td><label>资源类型:</label></td>
				<td>
					<select id="cc" class="easyui-combobox" name="resourceType" >
						<option value="2" <c:if test="${resource.resourceType == 2  }" >selected="true"</c:if>>房型</option>
						<option value="3" <c:if test="${resource.resourceType == 3  }" >selected="true"</c:if>>餐厅</option>
						<option value="4" <c:if test="${resource.resourceType == 4  }" >selected="true"</c:if>>特色</option>
					</select>
				</td>
			</tr>
		<tr>
				<td><label>中文名称:</label></td>
				<td><input name="zhname" value="${resource.zhname }"
					class="easyui-validatebox" data-options="required:true,validType:'length[0,32]'"></td>
			</tr>
			<tr>
				<td><label>英文名称:</label></td>
				<td><input name="enname" value="${resource.enname }"
					class="easyui-validatebox" data-options="required:true,validType:'length[0,64]'"></td>
			</tr>
			<tr>
				<td><label>描述摘要：</label></td>
				<td>
					<textarea name="summary" id="summary"  data-options="validType:'length[0,64]'" style="width:350px;height:100px"
					class="easyui-validatebox" required="true">${resource.summary }</textarea>
				</td>
			</tr>
			<tr>
				<td><label>描述信息：</label></td>
				<td>
					<textarea name="content" id="content"  data-options="validType:'length[0,2048]'" style="width:350px;height:100px"
					class="easyui-validatebox">${resource.content }</textarea>
				</td>
			</tr>
			<tr>
				<input type="hidden" value="${resource.hotelId }" name="hotelId">
				<input type="hidden" value="${resource.resourceId }" name="resourceId">
				<input type="hidden" value="${resource.infoId }" name="infoId">
				<input type="hidden" value="${resource.infoType }" name="infoType">
				<input type="hidden" value="${resource.dataId }" name="dataId">
			</tr>
		</table>
	</form>
	<script type="text/javascript">
	$('#content').ceditor();
	$('#summary').ceditor();
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 20px 20px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>